package com.ziyougou.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ziyougou.common.utils.PageUtils;
import com.ziyougou.product.entity.AttrEntity;
import com.ziyougou.product.vo.AttrResponseVO;
import com.ziyougou.product.vo.AttrVO;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author yuanhaipeng
 * @email yuanhaipeng@gmail.com
 * @date 2024-06-26 14:09:53
 */
public interface AttrService extends IService<AttrEntity> {

    void saveAttr(AttrVO attr);

    AttrResponseVO getAttrById(Long attrId);

    void updateAttrById(AttrVO attr);

    List<AttrEntity> getAttrListByCatelogId(Long catelogId);

    PageUtils queryPage(Map<String, Object> params, Long catId,String type);
}

